import { Module } from "@nestjs/common";
import { TypeOrmModule } from "@nestjs/typeorm";
import { ScheduleModule } from "@nestjs/schedule";
import { CharacterLocationEntity } from "../../entities/character-location.entity";
import { CharacterLocationService } from "../../services/character-location.service";
import { LocationCleanupService } from "../../services/location-cleanup.service";
import { RedisModule } from "../redis.module";
import { MapAreaModule } from "../map-area/map-area.module";

@Module({
  imports: [
    TypeOrmModule.forFeature([CharacterLocationEntity]),
    ScheduleModule.forRoot(),
    MapAreaModule,
    RedisModule,
  ],
  providers: [CharacterLocationService, LocationCleanupService],
  exports: [CharacterLocationService],
})
export class CharacterLocationModule {}
